home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-23 | 1.4 KB | 35 lines | [TEXT/ttxt] |
- BE WARNED - used as is this init will put up an alert every
- ten seconds until you hold down the command key while dismissing
- the alert.
-
- This is a generic timed init that makes use of the Time
- Manager and the Notification Manager. It uses both in this
- way:
-
- 1) It queues up a delayed call to the Time Manager.
-
- 2) Because the Time Manager is called at interrupt time and
- we want to perform a task which involves moving memory (not
- allowed at interrupt time) the only thing our call does is
- to queue up a call to the Notification Manager, which will
- execute during GetNextEvent/WaitNextEvent time, allowing us
- to do what we will.
-
- 3) When we have completed our task (through using the response
- routine allowed in a Notification record), we queue up another
- call to the Time Manager which, when executed, will queue up
- the same Notification record, which at its end calls the Time
- Manager - etc.etc.etc.
-
- BE WARNED - used as is this init will put up an alert every
- ten seconds until you hold down the command key while dismissing
- the alert.
-
-
- This was my first init and I'm trying to save folks the hell
- I went through in figuring it out. I'm sure there are ways
- to optimize the code and if anyone can make improvements,
- in the code or in the commented documentation please do so
- and pass them on. Lord knows there is a dearth of info about
- the structure and execution of inits.
-